<template>
  <div class="create">
    <el-row class="content" type="flex" justify="space-between">
    <div class="content_left">
      <h2>发表新攻略</h2>
      <span>分享你的个人游记，让更多人看到哦！</span>
      <el-input v-model="input" placeholder="请输入标题" class="el_input"></el-input>
       <VueEditor v-model="content" :editor-toolbar="customToolbar" />
    </div>
    <div class="content_right">
      <div class="drafts">
        <h4>草稿箱(2)</h4>
      </div>
    </div>
  </el-row>
  </div>
</template>

<script>

export default {
  
  data(){
    return {
      input:"",
      content: "<p>您好</p>",
      customToolbar: [
      ["bold", "italic", "underline",'strike'],
      [{ 'header': 1 }, { 'header': 2 }],
      ["image"]
    ]
    }
  }
};
</script>

<style scoped lang="less">
.create {
  width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
  .content{
    .content_left{
    width: 750px;
    h2 {
    font-weight: normal;
  }
  span {
    font-size: 12px;
    padding-top: 10px;
  }
  .el_input{
    margin-top: 10px;
    margin-bottom:20px; 
  }
  }
  .content_right{
    width: 200px;
    // background-color: red;
    .drafts{
    padding: 10px;
      border: 1px solid #eee;
      h4{
        font-weight: normal;

      }
    }
  }
  }
}
</style>